/*
 * DirectMessageEvent.java
 *
 * Created on 10 październik 2007, 20:14
 *
 */

package kosciak.blip4j.automation;

import kosciak.blip4j.*;

/**
 * <CODE>DirectMessageEvent</CODE> represents an incomming DirecMessage Event.
 * @author Wojtek 'KosciaK' Pietrzok
 * @since 0.1
 */
public class DirectMessageEvent extends UpdateEvent{
    
    private DirectMessage message;
    
    /**
     * Creates a new instance of DirectMessageEvent
     * @param source a source of the Event
     * @param client a BlipClient used by the UpdateChecker
     * @param message a DirectMessage
     */
    public DirectMessageEvent(Object source, BlipClient client, DirectMessage message) {
        super(source, client);
        this.message = message;
    }

    /**
     * Gets incoming DirectMessage
     * @return an incoming DirectMessage
     */
    public DirectMessage getMessage() {
        return message;
    }

}
